package cn.tedu.store.redis;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.cache.CacheProperties.Redis;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

@ConfigurationProperties
public class redis {
	@Value("${spring.redis.host}")
	private String host;
	@Value("${spring.redis.port}")
	private Integer port;
	
	
	public String getHost() {
		return host;
	}


	public Integer getPort() {
		return port;
	}


	@Bean
	public Redis getRedis() {
		Redis redis=new Redis();
		return redis;
	}
}
